<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%--
  Created by IntelliJ IDEA.
  User: ASUS
  Date: 2021/5/6
  Time: 18:28
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<div class="page-wrapper">
    <div class="preloader"></div>
    <header class="main-header">
        <!--顶端-->
        <div class="header-top">
            <div class="auto-container">
                <div class="clearfix">
                    <!--顶端左边-->
                    <div class="top-left">
                        <p>龙腾二手车欢迎您</p>
                    </div>
                    <!--顶端右边-->
                    <div class="top-right">
                        <ul class="dropdown-option clearfix">
                            <li class="account dropdown"><a class="btn btn-default dropdown-toggle" id="dropdownMenu2" data-toggle="dropdown" aria-haspopup="true" aria-expanded="true" href="#">
                                <span class="icon flaticon-user"></span>
                               <span> ${uname}</span></a>
                            </li>

<%--                            /boot/logins/login--%>
                            <c:if test="${uname==null}">
                            <li><a class="sell-car" href="#" data-toggle="modal" data-target="#myModal">登录</a></li>
                            </c:if>

                            
                                <li><a class="sell-car" href="/boot/registers/register">注册</a></li>
                        </ul>
                    </div>
                </div>
            </div>
        </div>

        <div class="header-upper">
            <div class="auto-container">
                <div class="upper-inner clearfix">
                    <div class="logo-outer">
                        <div class="logo"><a href="index.jsp"><img src="/boot/images/logo1.png" alt="" title=""></a></div>
                    </div>
                    <div class="upper-right clearfix">
                        <div class="nav-outer clearfix">
                            <nav class="main-menu">
                                <div class="navbar-header">
                                    <button type="button" class="navbar-toggle" data-toggle="collapse" data-target=".navbar-collapse">
                                        <span class="icon-bar"></span>
                                        <span class="icon-bar"></span>
                                        <span class="icon-bar"></span>
                                    </button>
                                </div>

                                <!-- 我的导航 -->
                                <div class="navbar-collapse collapse clearfix">
                                    <ul class="navigation clearfix">
                                        <li class="current"><a href="/boot/user/index">我的首页</a></li>
                                        <li><a href="/boot/user/about">关于我们</a></li>
                                        <li class=""><a href="/boot/user/buycar">我要买车</a> </li>
                                        <li class=""><a href="/boot/user/saleCar">我要卖车</a>  </li>
                                        <li class=""><a href="/boot/user/service">售后服务</a></li>
                                        <li class=""><a href="/boot/user/map">地图</a></li>
                                        <li class=""><a href="/boot/user/seckill">秒杀</a></li>
                                      <c:if test="${uname!=null}">
                                        <li class=""><a href="/boot/carts/index1">购物车</a></li>

                                          </c:if>


                                 <li class=""><a href="#">论坛中心</a></li>


                                       <c:if test="${uname!=null}">
                                        <li><a href="/boot/user/personindex">个人中心</a></li>

                                        </c:if>
                                    </ul>
                                </div>
                            </nav>
                            <div class="more-options">
                                <div class="cart-box">
                                    <a href="shoping-cart.html"> <span class="icon fa fa-shopping-cart"><span class="number">0</span></span></a>
                                </div>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </div>

        <div class="sticky-header">
            <div class="auto-container clearfix">
                <div class="logo pull-left">
                    <a href="index.jsp" class="img-responsive" title="Car World"><img src="/boot/images/logo-small.png" alt="Tali" title="Car World"></a>
                </div>
                <div class="right-col pull-right">
                    <nav class="main-menu">
                        <div class="navbar-header">
                            <button type="button" class="navbar-toggle" data-toggle="collapse" data-target=".navbar-collapse">
                                <span class="icon-bar"></span>
                                <span class="icon-bar"></span>
                                <span class="icon-bar"></span>
                            </button>
                        </div>
                        <div class="navbar-collapse collapse clearfix">
                            <ul class="navigation clearfix">
                                <li class="current"><a href="/boot/user/index">我的首页</a></li>
                                <li><a href="/boot/user/about">关于我们</a></li>
                                <li class=""><a href="/boot/user/buycar">我要买车</a> </li>
                                <li class=""><a href="/boot/user/saleCar">我要卖车</a>  </li>
                                <li class=""><a href="/boot/user/service">售后服务</a></li>
                                <li class=""><a href="/boot/user/seckill">秒杀</a></li>


                                <c:if test="${uname!=null}">
                                    <li class=""><a href="/boot/carts/index1">购物车</a></li>

                                </c:if>

<%--                                <li class=""><a href="#">论坛中心</a></li>--%>
                                <li><a href="/boot/user/personindex">个人中心</a></li>
                            </ul>
                        </div>
                    </nav>
                </div>
            </div>
        </div>
    </header>
</div>

<div class="modal fade" id="myModal" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true">
    <div class="modal-dialog">
        <div class="modal-content">
            <div class="modal-header">
                <button type="button" class="close" data-dismiss="modal" aria-hidden="true">&times;</button>
                <img src="/boot/images/logo1.png">
            </div>
            <div class="modal-body" style="text-align: center">
                <a href="/boot/logins/login" style="background-color: #ff5400;font-size:25px;color: white;border-radius: 5px">用户登录</a>
                <a href="/boot/user/adminLogin" style="background-color: #ff5400;font-size:25px;color: white;border-radius: 5px">管理员登录</a>
            </div>
        </div><!-- /.modal-content -->
    </div><!-- /.modal -->
</div>
<script>

</script>